import {
	createStore
} from 'vuex'
import user from './module/user.js'
import player from './module/player.js'
// console.log(name);

const store = createStore({
	state: {
		AppTheme:'theme-green'
	},
	mutations: {
		changeTheme(state,newTheme){
			state.AppTheme=newTheme
			uni.setStorageSync('AppTheme', newTheme)
		}
	},
	actions: {},
	modules: {
		user,
		player
	}

})
export default store